package main

import (
	"os"
	"fmt"
)

func main(){
	filePath := "../1.txt"
	file,_ := os.OpenFile(filePath,os.O_TRUNC | os.O_WRONLY,0666)
	defer file.Close()
	content := "wertyuioqqqqqqqqqqqqqqqqq"
	//var slice []byte = make([]byte,5)
	slice := []byte(content)
	fmt.Printf("%T \n",slice)
	n,err := file.Write(slice)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(n)
}
